<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul class="week-list">
      <li class="week-item" v-for="item of list" :key="item.id">
        <div class="week-img-content">
          <img class="week-img" :src=item.img>
        </div>
        <div class="week-info">
          <div class="week-title">{{item.title}}</div>
          <div class="week-des">{{item.desc}}</div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeek',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/varibles.styl'
.title
  height: .7rem
  line-height: .7rem
  padding-left: .2rem
.week-list
  width: 100%
  .week-item
    margin-bottom: .1rem
    background: #fff
    .week-img-content
      overflow hidden
      height 0
      padding-bottom: 33.9%
    .week-img
      width: 100%
    .week-info
      padding: .2rem
      .week-des
        padding-top: .2rem
        font-size: .2rem
</style>
